package org.snusmumr.android.media.tools;

import java.io.Serializable;

public class InvalidFileFormatException extends Exception implements Serializable {
	private static final long serialVersionUID = -8904510118394261860L;
	
	public static final int ERROR_IMPORT_FILE_EMPTY 	= 1000;
	
	private int errorCode;

	public InvalidFileFormatException(int errorCode) {
		this.errorCode = errorCode;
	}

	public InvalidFileFormatException(int errorCode, Throwable throwable) {
		super(throwable);
		this.errorCode = errorCode;
	}
	
	public int getErrorCode() {
		return errorCode;
	}
	
	public static InvalidFileFormatException getImportFileEmpty() {
		return new InvalidFileFormatException(ERROR_IMPORT_FILE_EMPTY);
	}
	
	@Override
	@Deprecated
	public String getMessage() {
		throw new RuntimeException("Do not use this method. It's not implemented");
	}

}
